package com.lin.eat.serivce;

import com.lin.eat.entry.ServerResponse;
import com.lin.eat.entry.ShoppingCar;
import com.lin.eat.entry.ShoppingCarDetail;

import java.util.List;

public interface ShoppingCarService {

    //加入购物车
    ServerResponse addShoppingCar(ShoppingCar shoppingCar);

    //从购物车删除某商品
    ServerResponse deleteShoppingCar(String g_id);

    //修改购物车中某个商品的选中状态
    ServerResponse updateShoppingCarState(ShoppingCar shoppingCar);

    //修改购物车中所有商品的选中状态
    ServerResponse updateAllShoppingCarState(String s_state);

    //获取购物车列表
    ServerResponse<List<ShoppingCarDetail>> getShoppingCarInfo();

    //修改购物车某个商品的数量
    ServerResponse updateShoppingCarNumber(ShoppingCar shoppingCar);

    //获取购物车中选中的商品
    ServerResponse<List<ShoppingCarDetail>> getShoppingCarChecked();
}
